var e = require, t = module, n = exports;

Object.defineProperty(n, "__esModule", {
    value: !0
}), n.DSC = void 0;

var o = e("ParseUtil"), i = e("GameConfig");

n.DSC = window.DSC = new (function() {
    function e() {
        this.workDayFreeNum = 0, this.workDayFreeVideoNum = 0, this.workDayFreeCDSeconds = 0, 
        this.weekendsFreeNum = 0, this.weekendsFreeVideoNum = 0, this.weekendsFreeCDSeconds = 0, 
        this.drawCost = 0, this.drawUpperLimit = 0, this.totalDrawNum = 0, this.todayDrawNum = 0, 
        this.rewardList = [], this.isLoad = !1;
    }
    return e.prototype.init = function(e) {
        for (var t in e) t in this && (this[t] = o.ParseUtil.getValue(e[t], this[t]));
        this.isLoad || (cc.log("DSC:", JSON.stringify(this)), this.rewardList.forEach(function(e, t) {
            t = i.GC.drawPersonConfig[t];
            t.type = e.type, null == t.data && (t.data = {}), null != e.limitMinute && (t.data.time = e.limitMinute), 
            null != e.num && (t.data.num = e.num), null != e.idx && (t.data.idx = e.idx);
        })), this.isLoad = !0;
    }, e;
}())();